const Home = () => import('@/views/home')
const Jcsystem = () => import('@/views/jcsystem')
const Report = () => import('@/views/report')
const Service = () => import('@/views/service')
const Lwfooter = () => import('@/components/lwfooter')
const Jclist = () => import('@/views/jclist')
const Ccpage = () => import('@/views/ccpage')
const Lwlogin = () => import('@/components/lwlogin/login')
const Pay = () => import('@/views/pay')
export default [
  {
    path: '/',
    redirect: '/home',
    meta: {}
  },
  {
    path: '/home',
    name: 'home',
    components: { default: Home, footer: Lwfooter },
    meta: {
      isTabbar: true,
      title: '首页',
      id: 'home',
      icon: '&#xe640;',
      activeIcon: '&#xe63a;'
    }
  },
  {
    path: '/jcsystem',
    name: 'jcsystem',
    components: { default: Jcsystem, footer: Lwfooter },
    children: [
      {
        path: ':id',
        name: 'jclist',
        component: Jclist
      }
    ],
    meta: {
      isTabbar: true,
      title: '检测系统',
      id: 'jcsystem',
      icon: '&#xe607;',
      activeIcon: '&#xe63c;'
    }
  },
  {
    path: '/reportr',
    name: 'report',
    components: { default: Report, footer: Lwfooter },
    meta: {
      isTabbar: true,
      title: '查看报告',
      id: 'report',
      icon: '&#xe63f;',
      activeIcon: '&#xe605;',
      isAuthRequired: true
    }
  },
  {
    path: '/service',
    name: 'service',
    components: { default: Service, footer: Lwfooter },
    meta: {
      isTabbar: true,
      title: '在线客服',
      id: 'service',
      icon: '&#xe63b;',
      activeIcon: '&#xe604;'
    }
  },
  {
    path: '/ccpage',
    name: 'ccpage',
    components: {
      default: Ccpage
    },
    meta: {
      isTabbar: false,
      isAuthRequired: true
    }
  },
  {
    path: '/login',
    name: 'lwlogin',
    component: Lwlogin,
    meta: {
      isTabbar: false
    }
  },
  {
    path: '/pay',
    name: 'pay',
    component: Pay,
    meta: {
      isTabbar: false
    }
  }
]
